<?php

class Mithos_Util_Text {

    public static function camelize($string = '') {
        return str_replace(' ', '', ucwords(str_replace(array('_', '-'), ' ', $string)));
    }
    
    public static function convertHexaToASCII($string) {
        $ascii = null;
        $string = str_replace(' ', null, $string);
        
        for ($i = 0; $i < strlen($string); $i += 2) {
            $ascii .= chr(hexdec(substr($string, $i, 2)));   
        }
        return $ascii;    
    }
}

?>